package com.ken.checkviolationapp.ui.home

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.ken.base_http_library.IllegalBean

/**
 * @author by ken
 * Blog:
 * Date:2020/4/28
 * Description:
 */
class HomeViewModelFactory(private var bean: IllegalBean) : ViewModelProvider.Factory {
    override fun <T : ViewModel?> create(modelClass: Class<T>): T {

        return HomeViewModel(bean) as T
    }
}